package com.jjb.common.ability.adapter.model;

import com.jjb.common.ability.adapter.service.IBusinessService;

import java.util.Objects;

public class BusinessBadgeModel {

    private String businessType;

    private String businessWay;

    private IBusinessService businessService;

    public BusinessBadgeModel() {
    }

    public BusinessBadgeModel(String businessType, String businessWay) {
        this.businessType = businessType;
        this.businessWay = businessWay;
    }

    public IBusinessService getBusinessService() {
        return businessService;
    }

    public void setBusinessService(IBusinessService businessService) {
        this.businessService = businessService;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public String getBusinessWay() {
        return businessWay;
    }

    public void setBusinessWay(String businessWay) {
        this.businessWay = businessWay;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BusinessBadgeModel that = (BusinessBadgeModel) o;
        return Objects.equals(businessType, that.businessType) && Objects.equals(businessWay, that.businessWay);
    }

    @Override
    public int hashCode() {
        return Objects.hash(businessType, businessWay);
    }
}
